home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
ctutord.EXE
/
OPMAD.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-01-26
|
823b
|
49 lines
main()
{
int i,j,k;
j=1;k=2;i=3;;
k=i+++j;
printf("%d %d %d\n",i,j,k); /* 4 1 4 */
j=1;k=2;i=3;
k= ++i+j++;
printf("%d %d %d\n",i,j,k); /* 4 2 5 */
j=1;k=2;i=3;
k= --i-j--;
printf("%d %d %d\n",i,j,k); /* 2 0 1 */
j=1;k=2;i=3;
k= i---j;
printf("%d %d %d\n",i,j,k); /* 2 1 2 */
j=1;k=2;i=3;
k= -i+++j;
printf("%d %d %d\n",i,j,k); /* 4 1 -2 */
j=1;k=2;i=3;
k= ++i-j++;
printf("%d %d %d\n",i,j,k); /* 4 2 3 */
j=1;k=2;i=3;
k= +i+-j;
printf("%d %d %d\n",i,j,k); /* 3 1 2 */
j=1;k=2;i=3;
k= -i--+j;
printf("%d %d %d\n",i,j,k); /* 2 1 -2 */
j=1;k=2;i=3;
k= i--+--j;
printf("%d %d %d\n",i,j,k); /* 2 0 3 */
j=1;k=2;i=3;
k+=++i+--j;
printf("%d %d %d\n",i,j,k); /* 4 0 6 */
j=1;k=2;i=3;
k+=-i+++j;
printf("%d %d %d\n",i,j,k); /* 4 1 0 */
}